package net.huashitong.giszd.Web;

import com.sirdc.modules.core.web.JsonBaseController;
import com.sirdc.modules.core.web.model.JqGrid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/reportForm1")
public class ReportForm1Ctrl extends JsonBaseController {
    @Override
    protected String getView(String s) {
        return "/modules/reportForm1/" + s;
    }


//    @Autowired
//    private ExportService exportService;

    @RequestMapping(method = RequestMethod.GET)
    public String initPage() {
        return getView("query");
    }

/*
    //初始化数据
    @ResponseBody
    @RequestMapping(method = RequestMethod.POST)
    public JqGrid query(@ModelAttribute BnpUserFilter filter) {
//        List<MailListDataModel> list = exportService.queryMailListData(filter);
//        return coverJqGrid(filter, list);
        return null;
    }

    @RequestMapping("/filter")
    public String filter(@ModelAttribute BnpUserFilter filter, Model model) {
        model.addAttribute("userList", filter);
        return getView("filter");
    }*/

}
